﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public abstract class Skill : ScriptableObject
{
    [Header("技能信息")]
    public string skillName;
    public int order;
    public Character user;
    public Character target;
    public FightSystem fightSystem;
    public int costSp;
    
    public virtual void Cast()
    {
        
    }

    public virtual void Effect()
    {
        user.currentSp -= costSp;
    }

    public abstract int GetSkillDamage();

    public virtual bool CastAble()
    {
        return user.currentSp >= costSp;
    }
}
